@ECHO OFF

SET REVISION=0

FOR /F "delims=: tokens=1,2" %%G IN ('svn info %1') DO ^
IF "%%G"=="Revision" SET REVISION=%%H

ECHO %REVISION%
